#include<stdio.h>
#include<iostream>
#include<string.h>
#include<stdlib.h>
using namespace std;
char* s="I like C++";
int isBD(char c)
{
	if(c==' ') return 1;
	return 0;
} 
int i=0;
char a[]=;
int p=0;
int q=strlen(a)-1;
while (p<q)
{
	char t=a[p];
	a[p]=a[q];
	a[q]=t;
	p++;
	q--;
}
int main()
{
	while(s[i]!='\0')
	{
		while(isBD(s[i])==1&&s[i]!=0)
		i++;
		int si=i;
		while(isBD(s[i])==1&&s[i]!=0)
		i++;
		int ei=i-1;
		for(int j=si;j<=ei;j++)
		cout<<s[j];
		cout<<endl;
	}
}
